<template>
  <div>
      <input v-model="inputValue"/>
      <button @click="send">提交mutations</button>
  </div>
</template>

<script>
export default {
    name: 'MyMutations',
    data(){
        return{
            inputValue: ''
        }
    },
    methods: {
        send(){
            this.$store.commit('inputValue', this.inputValue);
        }
    }
}
</script>

<style lang="css" scoped>
button {
    margin-left: 20px;
}
</style>